<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body onload='document.f.j_username.focus();'>
<h3>Login with Username and Password</h3>
<form name='f' th:action="@{/login}" method='POST'>
    <table>
        <tr><td>User:</td><td><input type='text' name='username' value=''></td></tr>
        <tr><td>Password:</td><td><input type='password' name='password'/></td></tr>
        <p th:if="${param.logout}" class="error-code">已成功注销</p>
   		<p th:if="${param.error}" class="error-code">用户名或者密码错误</p>
        <tr><td colspan='2'><button type="submit"/>登录</button></td></tr>
    </table>
</form>
</body>
</html>